package com.example.springbootorderrabbitmqconsoumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@RabbitListener(queues = "sms.direct.queue")
public class SmsDirectConsumer {

    @RabbitHandler
    public void receiveMessage(String msg) {
        System.out.println("sms-direct-queue 收到消息：" + msg);
    }
}
